package Edchl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;

public class EDC_HL7SegORC extends MessageComponent{
	
	//Declarations
	public EDC_HL7FldST OrderControl;
	public EDC_HL7FldEI PlacerOrderNumber;
	public EDC_HL7FldEI FillerOrderNumber;
	public EDC_HL7FldEI PlacerGroupNumber;
	public EDC_HL7FldST OrderStatus;
	public EDC_HL7FldST ResponseFlag;
	public EDC_HL7FldTQ QuantityTiming;
	public EDC_HL7FldCM_PA Parent;
	public EDC_HL7FldTS DateTimeOfTransaction;
	public EDC_HL7RepFldXCN EnteredBy;
	public EDC_HL7RepFldXCN VerifiedBy;
	public EDC_HL7RepFldXCN OrderingProvider;
	public EDC_HL7FldPL EnterersLocation;
	public EDC_HL7RepFldXTN CallBackPhoneNumber;
	public EDC_HL7FldTS OrderEffectiveDateTime;
	public EDC_HL7FldCE OrderControlCodeReason;
	public EDC_HL7FldCE EnteringOrganization;
	public EDC_HL7FldCE EnteringDevice;
	public EDC_HL7RepFldXCN ActionBy;
	public EDC_HL7FldCE AdvancedBeneficiaryNoticeCode;
	public EDC_HL7RepFldXON OrderingFacilityName;
	public EDC_HL7RepFldXAD OrderingFacilityAddress;
	public EDC_HL7RepFldXTN OrderingFacilityPhoneNumber;
	public EDC_HL7RepFldXAD OrderingProviderAddress;
	
	//Constructor
	public EDC_HL7SegORC(MessageElement elem) {
		super(elem);
		OrderControl = new EDC_HL7FldST(elem.getElementAt("OrderControl"));
		PlacerOrderNumber = new EDC_HL7FldEI(elem.getElementAt("PlacerOrderNumber"));
		FillerOrderNumber = new EDC_HL7FldEI(elem.getElementAt("FillerOrderNumber"));
		PlacerGroupNumber = new EDC_HL7FldEI(elem.getElementAt("PlacerGroupNumber"));
		OrderStatus = new EDC_HL7FldST(elem.getElementAt("OrderStatus"));
		ResponseFlag = new EDC_HL7FldST(elem.getElementAt("ResponseFlag"));
		QuantityTiming = new EDC_HL7FldTQ(elem.getElementAt("QuantityTiming"));
		Parent = new EDC_HL7FldCM_PA(elem.getElementAt("Parent"));
		DateTimeOfTransaction = new EDC_HL7FldTS(elem.getElementAt("DateTimeOfTransaction"));
		EnteredBy = new EDC_HL7RepFldXCN(elem.getElementAt("EnteredBy"));
		VerifiedBy = new EDC_HL7RepFldXCN(elem.getElementAt("VerifiedBy"));
		OrderingProvider = new EDC_HL7RepFldXCN(elem.getElementAt("OrderingProvider"));
		EnterersLocation = new EDC_HL7FldPL(elem.getElementAt("EnterersLocation"));
		CallBackPhoneNumber = new EDC_HL7RepFldXTN(elem.getElementAt("CallBackPhoneNumber"));
		OrderEffectiveDateTime = new EDC_HL7FldTS(elem.getElementAt("OrderEffectiveDateTime"));
		OrderControlCodeReason = new EDC_HL7FldCE(elem.getElementAt("OrderControlCodeReason"));
		EnteringOrganization = new EDC_HL7FldCE(elem.getElementAt("EnteringOrganization"));
		EnteringDevice = new EDC_HL7FldCE(elem.getElementAt("EnteringDevice"));
		ActionBy = new EDC_HL7RepFldXCN(elem.getElementAt("ActionBy"));
		AdvancedBeneficiaryNoticeCode = new EDC_HL7FldCE(elem.getElementAt("AdvancedBeneficiaryNoticeCode"));
		OrderingFacilityName = new EDC_HL7RepFldXON(elem.getElementAt("OrderingFacilityName"));
		OrderingFacilityAddress = new EDC_HL7RepFldXAD(elem.getElementAt("OrderingFacilityAddress"));
		OrderingFacilityPhoneNumber = new EDC_HL7RepFldXTN(elem.getElementAt("OrderingFacilityPhoneNumber"));
		OrderingProviderAddress = new EDC_HL7RepFldXAD(elem.getElementAt("OrderingProviderAddress"));
	}

}
